///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Sep  8 2010)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include "wx/wxprec.h"

#include "CommandPanel.h"

///////////////////////////////////////////////////////////////////////////

CommandPanel::CommandPanel( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
{
	wxBoxSizer* CmdPanelSizer;
	CmdPanelSizer = new wxBoxSizer( wxVERTICAL );
	
	wxBoxSizer* TextBoxSizer;
	TextBoxSizer = new wxBoxSizer( wxVERTICAL );
	
	m_commandTextBox = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY|wxTE_RICH );
	TextBoxSizer->Add( m_commandTextBox, 1, wxALL|wxEXPAND, 2 );
	
	CmdPanelSizer->Add( TextBoxSizer, 1, wxEXPAND, 5 );
	
	wxBoxSizer* ComboBoxSizer;
	ComboBoxSizer = new wxBoxSizer( wxVERTICAL );
	
	m_commandComboBox = new wxComboBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 ); 
	ComboBoxSizer->Add( m_commandComboBox, 1, wxALL|wxEXPAND, 2 );
	
	CmdPanelSizer->Add( ComboBoxSizer, 0, wxEXPAND, 5 );
	
	this->SetSizer( CmdPanelSizer );
	this->Layout();
	
	// Connect Events
	m_commandTextBox->Connect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( CommandPanel::SetFocusComboBoxCommand ), NULL, this );
	m_commandComboBox->Connect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( CommandPanel::OnRunComboCommand ), NULL, this );
}

CommandPanel::~CommandPanel()
{
	// Disconnect Events
	m_commandTextBox->Disconnect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( CommandPanel::SetFocusComboBoxCommand ), NULL, this );
	m_commandComboBox->Disconnect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( CommandPanel::OnRunComboCommand ), NULL, this );
	
}
